<!--
 * @Author: 梁志恒 1067531094@qq.com
 * @Date: 2022-09-29 20:29:56
 * @LastEditors: 梁志恒 1067531094@qq.com
 * @LastEditTime: 2022-09-29 20:45:11
 * @FilePath: \作业\demo03.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/style.css" rel="stylesheet">
</head>

<body>
    <script>
        let jsonData = {
            id: "42",
            status: "OK",
            data: ["刘杰", "男"]
        }
        // let newJsonData = JSON.parse(jsonData)
        let { id: a, status: b, data: c } = jsonData
        console.log(a)
        console.log(b)
        console.log(c)
    </script>
</body>

</html>